import Koa from 'koa'
import 'module-alias/register'
import router from "@test/route/index"
import middleware from "@test/middleware";


const app = new Koa()

// 中间件处理
middleware(app)

// 加载所有路由
router(app)

export default app
